
/// 用户
class User {
  int stuId;
  String stuName;
  String nickName;
  String grade;
  String stuImg;
  String school;
  String sex;//性别ID，如：女-21，男-20
  String province;//省份
  String provinceID;//省份对应的编号
  String gradeID;//年级id
  String city;//市、地区
  String cityID;//市、地区对应的编号
  String  stuPhone;//手机号


  User(
      {this.stuId,
        this.stuName,
        this.nickName,
        this.grade,
        this.stuImg,
        this.school,
        this.sex,
      this.province,
      this.provinceID,
      this.gradeID,
      this.city,
      this.cityID,
      this.stuPhone});

  User.fromJson(Map<String, dynamic> json) {
    stuId = json['stuId'];
    stuName = json['stuName'];
    nickName = json['nickName'];
    grade = json['grade'];
    stuImg = json['stuImg'];
    school = json['school'];
    sex = json['sex'];
    province = json['province'];
    provinceID = json['provinceID'];
    gradeID = json['gradeID'];
    city = json['city'];
    cityID = json['cityID'];
    stuPhone = json['STU_PHONE'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['stuId'] = this.stuId;
    data['stuName'] = this.stuName;
    data['nickName'] = this.nickName;
    data['grade'] = this.grade;
    data['stuImg'] = this.stuImg;
    data['school'] = this.school;
    data['sex'] = this.sex;
    data['province'] = this.province;
    data['provinceID'] = this.provinceID;
    data['gradeID'] = this.gradeID;
    data['city'] = this.city;
    data['cityID'] = this.cityID;
    data['STU_PHONE']=this.stuPhone;
    return data;
  }
}
